package com.wngbms.shard.mapper;

//import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.wngbms.shard.bean.MyUser;
import com.wngbms.shard.bean.UserCourse;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

//@Repository
public interface UserMapper
//        extends BaseMapper<MyUser>
{

    @Select("select u_id id, u_name name, u_age age from users order by id desc ")
    List<MyUser> selectAll();

    List<MyUser> findAll();

    List<UserCourse> selectUserCourseByCustomerId(Integer customerId);

    List<MyUser> findAllDynamic(@Param("id") Integer a);
}
